package com.gibs.peixunapi.service;

import com.gibs.peixunapi.model.Business;
import com.gibs.peixunapi.result.Result;

import javax.validation.Valid;

public interface BusinessService {

    Result create(@Valid Business object);

    Result save(@Valid Business object);

    Result delete(Integer id);

    Result get(Integer id);

    Result getList(String key);

    Result getListPage(String key, Integer current, Integer limit);

    Result getOptions(String key);

}

